import request from '@/utils/request'

// 查询云HIS-患者档案列表
export function listPatient(query) {
    return request({
        url: '/dataCenter/patient/list',
        method: 'get',
        params: query
    })
}

// 查询云HIS-患者档案详细
export function getPatient(patientId) {
    return request({
        url: '/dataCenter/patient/' + patientId,
        method: 'get'
    })
}

// 新增云HIS-患者档案
export function addPatient(data) {
    return request({
        url: '/dataCenter/patient',
        method: 'post',
        data: data
    })
}

// 修改云HIS-患者档案
export function updatePatient(data) {
    return request({
        url: '/dataCenter/patient',
        method: 'put',
        data: data
    })
}

// 删除云HIS-患者档案
export function delPatient(id) {
    return request({
        url: '/dataCenter/patient/' + id,
        method: 'delete'
    })
}
